<?php

class GameNoticeAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
    );

    /**
     * 玩家获取公告
     *
     * @param int $userId 用户ID
     * @return SzResponse
     */
    public function execute($userId)
    {
        return $this->buildResponse(array(
            'noticeList' => GmToolsNoticeService::get()->getNoticeList($userId)
        ));
    }
}